Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored platform management Git URL into environment variable #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RobertNorthard
Copy link
Contributor

@RobertNorthard RobertNorthard commented Mar 1, 2017

Refactored platform management Git URL into environment variable ADOP_PLATFORM_MANAGEMENT_GIT_URL

This change was introduced because;

  • ADOP Pluggable library supports other SCM providers (Gerrit may not be the default choice)
  • enable users to easily use their own platman fork.

Features

  • Backwards compatible (defaults to Gerrit).

@RobertNorthard RobertNorthard force-pushed the feature/platform-management-git-url-env-variable branch 2 times, most recently from e29171e to e3f14c3 Compare March 1, 2017 23:22
@@ -1,7 +1,3 @@
// Constants
def gerritBaseUrl = "ssh://jenkins@gerrit:29418"
def cartridgeBaseUrl = gerritBaseUrl + "/cartridges"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed cartridgeBaseUrl as it is no longer used since the introduction of PR #32

@RobertNorthard RobertNorthard force-pushed the feature/platform-management-git-url-env-variable branch from d26329a to 4e7c7ea Compare March 2, 2017 00:01
@subodh-hatkar
Copy link

subodh-hatkar commented Nov 21, 2017

Tested with following steps:

  • Spun up ADOP C using "--without-load"
  • Changed Load_Platform job configuration to use the fork branch (i.e. the one for this PR)
  • Ran Load_Platform
  • Verified the SCM repository of Platform Management jobs to have gerrit platform management repo
  • Added a global environment variable ADOP_PLATFORM_MANAGEMENT_GIT_URL in Manage Jenkins > Configure System and set it to the my forked adop platform management repo
  • Ran Load_Platform again
  • Verified the SCM repository of Platform Management jobs to have my forked platform management repo

The repositories are configured as expected if ADOP_PLATFORM_MANAGEMENT_GIT_URL environment variable is set. They fall back to default gerrit repositories if the mentioned variable is not set.

Happy for this PR to be closed.

@RobertNorthard
Copy link
Contributor Author

@subodh-hatkar thanks for testing.

@nickdgriffin do you have any feedback on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants